package com.example.springboot.druid;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//初始化扫描包,，路径为Application类所在package以及package下的子路径.
@ComponentScan("com.example.springboot.*")
//增加事物管理
@EnableTransactionManagement
@SpringBootApplication
public class SpringbootDruidApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootDruidApplication.class, args);
	}
}
